import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '@/views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    // redirect: '/home',
    component: ()=> import('@/views/HomeView.vue')
  },
  {
    path: '/browse',
    name: 'browse',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '@/views/BrowseView.vue')
  }
  ,
  {
    path: '/details',
    name: 'details',
    component: () => import(/* webpackChunkName: "about" */ '@/views/DetailsView.vue')
  }
  ,
  {
    path: '/streams',
    name: 'streams',
    component: () => import(/* webpackChunkName: "about" */ '@/views/StreamsView.vue')
  }
  ,
  {
    path: '/profile',
    name: 'profile',
    component: () => import(/* webpackChunkName: "about" */ '@/views/ProfileView.vue')
  }



]

const router = new VueRouter({
  routes
})

export default router
